<template>

  <div class="dashboard-container">
    <div class="dashboard-editor-container">
        <p class="warn-content">
            <a>欢迎进入水泥之家 </a>
        </p>

      <panel-group :todoNum="todoNum"/>


       <!-- <div class=" clearfix">

            <pan-thumb :image="avatar" style="float: left"> </pan-thumb>
            <github-corner style="position: absolute; top: 0px; border: 0; right: 0;"/>
            <div class="info-container">
                <span class="display_name">{{ name }}</span>
                <span class="rolename">角色:</span>
                <span class="rolename" v-for="item in rolename" :key="item">{{ item }} &nbsp;&nbsp;</span>


            </div>
        </div>-->
<!--      <el-row style="    margin-top: 10vh;">
        <el-col :span="24">
          <img :src="emptyGif" style="width: 100%" class="emptyGif">
        </el-col>
      </el-row>
        <div>
            <img :src="emptyGif" class="emptyGif">
        </div>-->
      <el-row :gutter="8">
        <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 12}" :xl="{span: 12}" style="padding-right:8px;margin-bottom:30px;">
          <box-card/>
        </el-col>
        <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 12}" :xl="{span: 12}" style="padding-right:8px;margin-bottom:30px;">
          <transaction-table :todoNum.sync="todoNum"/>
        </el-col>
<!--        <el-col :xs="{span: 24}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 6}" :xl="{span: 6}" style="margin-bottom:30px;">
          <box-card/>
        </el-col>-->
      </el-row>


    </div>
  </div>
</template>

<script>
    import {mapGetters} from 'vuex'
    import PanelGroup from './components/PanelGroup'
    // import imgs from '@/assets/imgs/123.png'

    import TransactionTable from './components/TransactionTable'
    import BoxCard from './components/BoxCard'
    export default {
        name: 'dashboard',
        components: {
          PanelGroup,
          TransactionTable,
          BoxCard },
        data() {
            return {
              todoNum:0,  //待办数量
              emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3',
                // emptyGif: imgs,
            }
        },
        computed: {
            ...mapGetters([
                'name',
                'avatar',
                'rolename'
            ])
        }
    }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
    .emptyGif {
        display: block;
        width: 45%;
        margin: 0 auto;
    }

    .dashboard-editor-container {
        /*background-color: #e3e3e3;*/
        /*min-height: 100vh;*/
        /*padding: 50px 60px 0px;*/
      height: calc(100vh - 51px);
      overflow: auto;
      padding: 32px;
      background-color: rgb(240, 242, 245);
        .chart-wrapper {
          background: #fff;
          padding: 16px 16px 0;
          margin-bottom: 32px;
        }
        .warn-content  {
            text-align: center;
            a{
                color: #42b983;
                font-weight: 700;
                font-size: 30px;
                letter-spacing: 10px;
            }
        }
        .pan-info-roles {
            font-size: 12px;
            font-weight: 700;
            color: #333;
            display: block;
        }
        .info-container {
            position: relative;
            margin-left: 190px;
            height: 150px;
            line-height: 200px;
            .display_name {
                font-size: 48px;
                line-height: 48px;
                color: #212121;
                position: absolute;
                top: 25px;
            }
            .rolename{
                font-size: 20px;
                padding-top: 20px;
                display: inline-block;
            }
        }
    }
</style>

